package com.hdax.dm.rest;

import com.hdax.dm.common.config.api.LinkUserControllerApi;
import com.hdax.dm.entity.user.DmLinkUser;
import com.hdax.dm.service.LinkUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class linkUserRestService implements LinkUserControllerApi {

    @Autowired
    private LinkUserService linkUserService;

    @Override
    public DmLinkUser likeUser(Long likeUserId,Long userId) {
        return linkUserService.linkUserOne(likeUserId,userId);
    }
}
